package com.atguigu.dao;

import com.atguigu.base.BaseDao;
import com.atguigu.entity.UserFollow;
import com.atguigu.vo.UserFollowVo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

/**
 * @author tangsy
 * @Description TODO
 * @date 2022/9/24 11:29
 * @Version 1.0
 */
public interface UserFollowDao extends BaseDao<UserFollow> {

    Integer countByUserIdAndHouserId(Long userId, Long houseId);


    int isFollowed(@Param("houseId") Long houseId,@Param("userId") Long userId);

    Page<UserFollowVo> findListPage(Long userId);

    void cancelFollow(Long id);

}
